from django.urls import path
from . import views

urlpatterns = [
    path('index/', views.indexView, name='index'),
    path('user/', views.userView, name='user'),
    path('user/getSearchSelect/', views.loadUserRoleSearch),
    path('user/getAddSelect/', views.loadAddOptions),
    path('user/getSelect/', views.loadOptions),
    path('user/getTableData/', views.loadUser),
    path('user/add/', views.addUser),
    path('user/mod/', views.updateUser),
    path('user/del/', views.deleteUser),
    path('login/', views.loginView, name='login'),
    path('login/identify/', views.login),
    path('login/last/', views.lastLogin),
    path('logout/', views.logout),
    path('systemsettings/', views.show_system_settings, name='parasettings'),
    path('systemsettings/getTableData/', views.loadSystemSettings),
    path('systemsettings/add/', views.add_settings_para),
    path('systemsettings/del/', views.del_settings_para),
    path('systemsettings/mod/', views.save_settings_para),
    path('systemsettings/getSearchSelect/', views.loadParaTypeSearch),
    path('systemsettings/getSelect/', views.loadParaOption),
    path('product/', views.productView, name='product'),
    path('product/getTableData/', views.loadProduct),
    path('product/add/', views.addProduct),
    path('product/mod/', views.updateProduct),
    path('product/del/', views.deleteProduct),
    # path('apitestcase/', views.api_testcase,name='apitestcase'),
    path('apitestcase/show_add_window/', views.show_add_window),
    # path('apitestcase/add/', views.add_interfaces),
    path('apitestcase/format_body/', views.format_body),
    path('apitestcase/search/', views.search_interface),
    path('apitestcase/show_edit_interface/<str:edit_id>/<str:action>/', views.show_edit_interface),
    path('apitestcase/save_edit_interface/<str:edit_id>/', views.save_edit_interface),
    path('apitestcase/save_copy_interface/<str:edit_id>/', views.save_copy_interface),
    path('apitestcase/del/', views.del_interface),
    path('apitestcase/run/', views.start_interface_test),
    path('apitestcase/show_request_data/', views.show_request_data),
    path('apitestplan/', views.interface_testplan,name='apitestplan'),
    path('apitestplan/add/', views.add_testplan),
    path('apitestplan/show_edit_testplan/', views.show_edit_testplan),
    path('apitestplan/mod/', views.save_edit_testplan),
    path('apitestplan/del_row/', views.del_row),
    path('apitestplan/del_row_edit/', views.del_row_edit),
    path('apitestplan/del/', views.del_testplan),
    path('apitestplan/search/', views.search_testplan),
    path('apitestplan/apitestcase/search/', views.search_testplan_apitestcase),
    path('apitestplan/show_edit_testplan_interface/<str:para>/', views.show_edit_testplan_interface),
    path('apitestplan/save_edit_testplan_para/', views.save_edit_testplan_para),
    path('apitestplan/run/', views.start_interface_testplan),
    path('apitestplan/run/<str:suit_id>/', views.runTestplan),
    path('report/', views.reportView, name='apireport'),
    path('report/getTableData/', views.loadReport),
    path('report/getReportDetail/<str:report_id>/', views.getReportDetail, name='reportdetail'),
    path('report/del/', views.deleteReport),
]